<?php

namespace App\System\Log\Repositories;

use App\System\Base\Helpers\Traits\SinglePattern;
use App\System\Base\Repositories\Repository;
use App\System\Log\Model\LogNumberChange;
use App\System\Log\Model\LogSms;

class LogNumberChangeRepository extends Repository
{
    use SinglePattern;

    /**
     * 新增一条记录
     * @param $data
     * @return bool|mixed
     */
    public function addData($data)
    {
       $res =  LogNumberChange::create($data);
       if(!$res)
       {
            return false;
       }
       return $res->id;
    }
}